package entity;

public class Animal {
    private String sex;
    private String colour;

    public Animal(){

    }

    void shout(){
        System.out.println("阿巴阿巴");
    }

    void eat(){
        System.out.println("咔哧咔哧");
    }
}

class Dog extends Animal {

    @Override
    void shout() {
        System.out.println("汪汪汪");
    }

    public static void main(String[] args) {
        Animal dog = new Dog();
        dog.shout();
        dog.eat();
    }

}
